package com.ten.order.feign;

import com.ten.common.core.entity.EduCourse;
import com.ten.common.core.vo.Result;
import com.ten.order.factory.CourseListFeignFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

/**
 * @author ：张成（3092211427@qq.com）
 * @date ：Created in 2022/12/2120:17
 * @description： 远程调用education-course微服务
 * @modified By：
 * @version:
 */
@FeignClient(value = "education-course",fallbackFactory = CourseListFeignFactory.class)
public interface CourseListFeign {
    @PostMapping("/core/course/selectByCourseId/{courseId}")
    public Result<List<EduCourse>> selectByCourseId(@PathVariable String courseId);
}
